/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package handler;

import database.DatabaseHandler;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import model.Produkt;

/**
 *
 * @author Jeppe
 */
public class ProduktHandler {
    private DatabaseHandler databaseHandler;

    public ProduktHandler() {
        databaseHandler = DatabaseHandler.getInstance();
    }
    
    
    public ArrayList<Produkt> getAlleProdukter() throws SQLException{
        ArrayList<Produkt> produktList = new ArrayList<>();
        
        ResultSet rs = databaseHandler.select("Call getAlleProdukter");
        
        
        return produktList;
    }
    
    
    
}
